package com.chen;

import com.chen.springmvc.service.api.IUserService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:spring/application.xml")
public class testUser
{
    @Resource
    private IUserService userService;

    @Test
    public void testFindAllUsers()
    {
        System.out.println(userService.findAllUsers());
    }

    @Test
    public void testFindById()
    {
        System.out.println(userService.findById(1));
    }

}
